Manually update toplevel_under_pointer when a grab changes to owner_events
authorAlexander Larsson <alexl@redhat.com>
Fri, 10 Jul 2009 15:30:42 +0000 (17:30 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 10 Jul 2009 15:38:05 +0000 (17:38 +0200)
commitccb09d1c6fc1beeb2d371d4e427af71cfc7d6de6
treee69364df3e6fc7927a441956bc904ceb1b5df52d
parent0ef74c936f7a5b36a66ea828506b4b44e25a1998
Manually update toplevel_under_pointer when a grab changes to owner_events

When we ungrab the pointer we don't get enter events for the window the
pointer is in at the time of the ungrab, so we manually query for the
window the pointer is in. The same thing actually happens on re-grab if
the previous grab was !owner_events (meaning we don't get crossing events
for windows other than the grab) but the new grab is owner_events (and
thus non-grab windows need to get crossing events).

This factors out some common code and enables it also for the re-grab
to owner_events case.
gdk/gdkdisplay.c